package diamondRingService.impl;

import diamondRingDao.impl.LoveDaoImpl;
import diamondRingEntity.Love;
import diamondRingService.LoveService;

public class LoveServiceImpl implements LoveService {
    LoveDaoImpl loves=new LoveDaoImpl();
    @Override
    public int updateLove(Love love) {
        int count=0;
        if (love!=null){
            count=loves.updateLove(love);
        }else {
            count=-1;
        }
        return count;
    }
}
